﻿@model MvcSiteMapProvider.Web.Html.Models.SiteMapNodeModelList
@using System.Web.Mvc.Html
@using MvcSiteMapProvider.Web.Html.Models

@foreach (var node in Model){     
    if (node.Children.Any())
    {
        <li class="hasChild"><a href="javascript:;" title="@node.Title"><i class="@node.Description"></i><span>@node.Title</span></a>
            <ul class="acc-menu">
                @Html.DisplayFor(m => node.Children)
            </ul>
        </li>
    }
    else
    {
        <li><a href="@Url.Action(node.Action, node.Controller)" title="@node.Title" ><i class="@node.Description"></i><span>@node.Title</span></a></li>
    }           
}
